struct devsw {
    int (*read)(int, char *, int);
    int (*write)(int, char *, int);
    int (*read2)(int, char *, int, int);
    int (*write2)(int, char *, int, int);
};

extern struct devsw devsw[];

#define CONSOLE 1